import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/layout'
Vue.use(VueRouter)
const routes = [{
    path: '/',
    component: Layout,
    redirect: '/home',
    children: [{
        path: 'home',
        component: () => import('@/views/home/index'),
      },
      {
        path: 'classification',
        component: () => import('@/views/classification/index'),
      },
      {
        path: 'about',
        component: () => import('@/views/about/index'),
      },
      {
        path: 'brokerage',
        component: () => import('@/views/brokerage/index'),
      },
      {
        path:'search',
        component: ()=> import('@/views/search/index'),
    }
    ]
  }

]

const router = new VueRouter({
  routes
})

export default router
